package com.krisyu.bridgePattern.bp1;

/**
 * @DATE 2022/1/10
 * @Author KrisYu
 * @Description
 */
public abstract class Corp {
    private Product product;

    /**
     * 关键代码，实现的子类必须要指定产品。
     * @param product
     */
    public Corp(Product product){
        this.product = product;
    }

    public void makeMoney(){
        this.product.beProduced();
        this.product.beProduced();
    }

}
